package com.originalpoint.origin_server.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.originalpoint.origin_server.mapper.MerchatOrdersMapper;
import com.originalpoint.origin_server.pojo.Dish;
import com.originalpoint.origin_server.pojo.Dto.BasePageDto;
import com.originalpoint.origin_server.pojo.Dto.MerchatOrderQueryDto;
import com.originalpoint.origin_server.pojo.Orders;
import com.originalpoint.origin_server.service.MerchatOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Objects;

@Service
public class MerchatOrdersServiceImpl  implements MerchatOrdersService {
    @Autowired
    private MerchatOrdersMapper merchatOrdersMapper;

//    @Override
//    public List<Orders> findMerchatOrdersById(Integer  merId) {
//        return merchatOrdersMapper.findMerchatOrdersById(merId);
//    }

    @Override
    public int updateMerchatOrders(Orders orders) {
        return merchatOrdersMapper.updateMerchatOrders(orders);
    }
    @Override
    public List<Orders> findMerchatOrdersById(MerchatOrderQueryDto merchatOrderQueryDto) {
        return merchatOrdersMapper.findMerchatOrdersById(merchatOrderQueryDto);
    }

}
